<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="cn.firstsoft.modules.knowledge.domain.KnowledgeCatalogyPortlet" table="knowledge_catalogy_portlet">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">KNOWLEDGECATALOGY_PORTLET_SEQ</param>
            </generator>
        </id>

		<many-to-one name="knowledgeCatalogy" class="cn.firstsoft.modules.knowledge.domain.KnowledgeCatalogy" fetch="select">
            <column name="knowledge_catalogy_id" />
        </many-to-one>
        
        <many-to-one name="portletNew" class="cn.firstsoft.modules.portlet.domain.PortletNew" fetch="select">
            <column name="portlet_new_id" />
        </many-to-one>
        
        <many-to-one name="portletNewTab" class="cn.firstsoft.modules.portlet.domain.PortletNewTab" fetch="select">
            <column name="portlet_new_tab_id" />
        </many-to-one>
    </class>

</hibernate-mapping>